CardConfig

@Serializable
class CardConfig(@DrawableRes val cardPlaceHolderImage: Int = -1, @DrawableRes val inboxEmptyImage: Int = -1, val cardsDateFormat: String, val isSwipeRefreshEnabled: Boolean)

Card Configuration.

Parameters

cardPlaceHolderImage

SDK shows a placeholder image in case the image download fails. In case you want to change the placeholder image pass in the resource id of the image else pass -1.

inboxEmptyImage

SDK shows an image indicating inbox is empty. In case you want to change the image pass in the resource id of the image else pass -1.

cardsDateFormat

String for formatting date shown on each card.

isSwipeRefreshEnabled

true if swipe refresh should be enabled, else false.

Constructors

Link copied to clipboard
constructor(@DrawableRes cardPlaceHolderImage: Int, @DrawableRes inboxEmptyImage: Int, cardsDateFormat: String)

Create an instance of Card Configuration.

constructor(isSwipeRefreshEnabled: Boolean)

Create an instance of Card Configuration.

constructor(cardPlaceHolderImage: Int, inboxEmptyImage: Int)

Create an instance of Card Configuration.

constructor(@DrawableRes cardPlaceHolderImage: Int = -1, @DrawableRes inboxEmptyImage: Int = -1, cardsDateFormat: String, isSwipeRefreshEnabled: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Resource id for the placeholder image for cards.

Link copied to clipboard

Date format shown on each card.

Link copied to clipboard

Resource id for image indicating empty inbox.

Link copied to clipboard

Indicates whether Swipe to refresh is enabled, enabled by default.

Functions

Link copied to clipboard
open override fun toString(): String